package communication

import (
	"log"
	"net"
	"time"
)

func TCPConnect(ip string, port string) {
	address := ip + ":" + port
	conn, err := net.DialTimeout("tcp", address, 10*time.Second)
	if err != nil {
		log.Println("TCP Connection Error:", err)
		return
	}
	defer conn.Close()
	log.Println("TCP Connection Established:", address)
	// Add data sending/receiving logic here
}
